#pragma once

#include "BallType.h"

class ItemSpawn
{
private:
	BallType::Type ball_type;
	sf::Vector2f position;
	sf::Sprite sprite;
	float anim_time;
public:
	ItemSpawn();

	void init(sf::Vector2f pos, int iCount);
	void step();
	void draw();
	BallType::Type get_type();
	void clear(int iCount);
	sf::Vector2f get_position();
	bool can_take() { return anim_time <= 0; }
};